package com.cmc.cloud.cmclink.doc.api.document.req.si;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 提单拆单请求参数
 *
 * @author tanzhuliang
 * @date 2025/8/27
 */
@Schema(description = "管理后台 - 提单拆申请主创建 Request VO")
@Data
@EqualsAndHashCode()
@ToString(callSuper = true)
@Valid
public class BlnoSpiltReqDto {

    @Schema(description = "原提单主键id", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "{BlnoSpiltVO.originalBlnoId.NotNull}")
    private Long originalBlnoId;

    @Schema(description = "提单拆分结果列表", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "{BlnoSpiltVO.spiltChildVOs.NotNull}")
    @Valid
    private List<BlnoSpiltChildDto> spiltChildDtos;

    @Schema(description = "拆单数据数据来源(网厅拆单必填 WEB)", requiredMode = Schema.RequiredMode.REQUIRED)
    private String dataSource;
}
